<template>
	<view class="main">
		<view style="width: 95%;">
			<view class="jx1">
				<input placeholder="为这篇记录说点什么吧" class="inp"/>
			</view>
			<view class="jx2">
				<view class="word">
					<text class="title" style="width: 90%;">记录时间</text>
					<picker mode="multiSelector" @columnchange="bindMultiPickerColumnChange" :value="multiIndex" :range="multiArray" style="opacity: 0.5;width: 50%;margin-top: 8px;">
						{{ multiArray[0][multiIndex[0]] }}
						{{ multiArray[1][multiIndex[1]] }}
						{{ multiArray[2][multiIndex[2]] }}
					</picker>
					<image src="../../static/Snipaste_2022-12-01_08-29-05.png" class="img"></image>		
				</view>
				<view class="photo" @click="photo()">
					<view class="jia">+</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				multiArray: [['2018年', '2019年'], ['6月', '7月','8月'], ['1日', '2日']],
				multiIndex: [0, 0, 0]
			}
		},
		methods: {
			photo(id){
				uni.showActionSheet({
					itemList:['拍照','相册'],
					itemColor:"blue"
				})
			}
		}
	}
</script>

<style>
	.main{
		height: 100%;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;	
		background-color:#f2f2f2;
	}
	
	.jx1{
		/* width: 95%; */
		height:130px;
		background-color:white;
		border-radius:3px;
		margin-top: 10px;	
	}
	
	.jx2{
		/* width: 95%; */
		height:900px;
		background-color:white;
		border-radius:3px;
		margin-top: 10px;
	}
	
	.photo{
		height:70px;
		width: 70px;
		border: 1px dashed gainsboro;
		border-radius:3px;
		margin-top: 30px;
		margin-left: 10px;
		border-width:2px;
		border-radius: 7%;
	}
	
	.inp{
		padding: 15px;
	}
	
	.word{
		width: 100%;
		height: 40px;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-top: 10px;
		margin-bottom: 10px;
		box-shadow:0px 1px gainsboro;
		
	}
	
	.img{
		height: 35px;
		width: 35px;
		display: inline-block;
		/* margin-top: 8px;
		margin-left: 900px; */
	}
	
	.title{
		margin-left: 13px;
		margin-top: 8px;
	}
	
	.jia{
		font-size: 50px;
		margin-left: 15px;
		margin-top: -4px;
		opacity: 0.5;
	}
</style>
